﻿using System.Drawing;
using System.Windows.Forms;
using CppUT.Common;

namespace TestRunnerGui
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            _testView = new TestViewControl();
            Controls.Add(_testView);
            _testView.Location = new Point(0,0);
            _testView.Size = new Size(Size.Width - 15, Size.Height - 38);
            _testView.Visible = true;
            _testView.Dock = DockStyle.Fill;
        }

        private void Form1_FormClosing(object sender, FormClosingEventArgs e)
        {
            _testView.TerminateTestRunnerApplication();
            ProcessManager.KillProcess(Constants.CppUnitTestRunnerExe);
        }

        private TestViewControl _testView;

        private void Form1_Resize(object sender, System.EventArgs e)
        {
            //_testView.Size = new Size(Width - 10, Height - 10);
        }
    }
}
